<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<body class="page-home js-page-home" th:fragment="footer">

	
	<footer id="footer" class="ddc-footer">
		<div class="ddc-footer__inner container" id="footerLinks">
			<ul class="ddc-footer-links"  v-for="item in items">
				<li v-for="i in item.links">
					<a :href="i.linkPath" class="ddc-footer-links__item" :target="i.linkTarget">{{ i.linkName }}</a>
				</li>
			</ul>
			<div class="ddc-footer-copyright">
				©2014 -
				<span id="copyright-year">2019</span>
				分布式研发小组 京ICP备12043664号-13 
				
				&nbsp;&nbsp;
				
				<a class="icp-num" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002002031" target="_blank">
					<img src="http://training-static.linesno.com/image//ga-icp.d0289dc0a4.png" width="16" style="margin-bottom:-2px" alt="">&nbsp;京公网安备 11000002002031
				</a>
			</div>
		</div>
		
	</footer>
	
	<div id="Itemlist"></div>
	
	<div th:fragment="footer-js">
	
		<script th:src="@{${cdn}+'/asserts/js/jquery.min.js'}"></script>	
		<script th:src="@{${cdn}+'/asserts/js/plugins/vue/vue.js'}"></script>	
		<script th:src="@{${cdn}+'/asserts/js/plugins/vue/vue-resource.min.js'}"></script>	
		
		<script type="text/javascript">
			$(function(){
				// 导航链接	
				var ItemsVue = new Vue({
					el: '#Itemlist',
					data: {
						items: [] 
					},
					mounted: function () {
						var self = this;
						$.ajax({
							url: ctx+'public/navigation',
							method: 'GET',
							success: function (response) {
								self.items = response.data ;
							},
							error: function (error) {
								console.log(error);
							}
						});
					} 
					
				});
			
				// footer link 
				linkItems('#footerLinks' , 'agree' , 'footer') ;
			})
		
			// 初始化链接
			function linkItems(_el , _type , _group){
				var ItemsVue = new Vue({
					el: _el ,
					data: {
						items: []
					},
					mounted: function () {
						var self = this;
						$.ajax({
							url: ctx+'public/portal/link/group?type='+_type+'&group='+_group ,
							method: 'GET',
							success: function (response) {
								self.items = response.data;
							},
							error: function (error) {
								console.log(error);
							}
						});
					} 
				});
			}
			
		</script>
		
		<div style="display:none">
			<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1277660940'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s23.cnzz.com/z_stat.php%3Fid%3D1277660940%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
		</div>	
	</div>
</body>
		
</html>
